    <%@ page import="com.generalynx.common.resources.Resources,
                 com.alesj.newsfeed.core.MsgCodeException"%>
<%@ include file="/WEB-INF/jsp/includes.jsp" %>

<%
    Exception exception = (Exception)request.getAttribute("exception");
    if (exception != null && exception instanceof MsgCodeException) {
        request.setAttribute("msg_code", exception.getMessage());    
    }
%>
<spring:message code="${msg_code}" />